<%-- 
    Document   : editdivision
    Created on : Oct 1, 2012, 10:00:55 AM
    Author     : Nguyen Hung
--%>
<%--
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){

           
            validateform("form-input-customer");
        });

    </script>
    <f:view>
        <h:form id="form-input-customer" >
            <body style=" float:left; width:auto; height:auto; margin:0px;">
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

                <div class="popup" style="height:275px; width:367px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="#{locale.department}"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content">
                            <div class="form_item_content" style="margin-top: -4px;">

                                        <div class="item_content" style="display:block">
                                            <div class="fields_input">
                                                <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.department_name}"/>*</span></label>
                                                
                                                <h:inputText value="#{groupController.nv851}" styleClass="required" id="cusname" style="width:300px;margin-left:25px;"/>

                                            </div>

                                            <div class="fields_input">
                                                <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.description}"/> </label>
                                                <h:inputTextarea value="#{groupController.nv852}"  style="height:70px; width:300px; margin-left:25px"  ></h:inputTextarea>
                                                <h:inputHidden id="pn850" value="#{groupController.pn850}" />
                                            </div>
                                        </div>
                                    </div>
                                            <div class="alert"></div>
                        </div>
                        
                    </div>

                <div class="popup-footer">

                    <div class="buttonsave" style="margin-right:33px;" onclick="parent.jQuery.fancybox.close(); "  ><span><h:outputText value="#{locale.close}"/></span></div>
                    <h:commandButton   onclick="return validatecheck('form-input-customer');"  action="#{groupController.saveN850}" value="#{locale.save}" styleClass="buttonsave">
                       
                    </h:commandButton>
                     <h:inputHidden value="#{groupController.table}" id="table"/>

                </div>

                </div>
            </body>
        </h:form>
    </f:view>
</html>
        <script type="text/javascript">
            $j(document).ready(function(){
                 yhight = ($j('.popup').height()-90)+"px" ;
                 $j('.main_content').css('height',yhight );
                 $j('.popup-content').css('height',yhight );
            });
        </script>
